#include <iostream>
#include "Parser.h"
#include "SFile.h"
using namespace std;

int main()
{
	system("mode con cols=200 ");
	SFile file;
	SLexer Lexer(file);
	Parser Parse(Lexer);
	set<string> pathSet = file.GetAllFilePath("../test/");
	set<string>::iterator iter;
	for (iter = pathSet.begin(); iter != pathSet.end(); ++iter)
	{
		bool flag = file.SetReadCharFile(*iter);
		Parse.Parse();
		if (flag == true)
			file.CloseReadCharFile();
	}

	system("pause");
	return 0;
}
